package com.blog.web.bean;

import java.util.Date;
import java.util.List;

import org.hibernate.validator.constraints.NotBlank;

import com.blog.base.validator.Inspector;

public class Album {
    private Integer id;

    @Inspector(minLength=1,maxLength=200)
    @NotBlank
    private String albumName;

    private Integer coverId;

    @Inspector(enumeration="0,1")
    private Integer visible;

    private Integer isDeleted;

    private Integer albumOrder;

    private String createDate;
    
    private Picture coverPicture;//封面图片
    
    private List<Picture> pictureList;//图片集

    public List<Picture> getPictureList() {
		return pictureList;
	}

	public Picture getCoverPicture() {
		return coverPicture;
	}

	public void setCoverPicture(Picture coverPicture) {
		this.coverPicture = coverPicture;
	}


	public void setPictureList(List<Picture> pictureList) {
		this.pictureList = pictureList;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAlbumName() {
        return albumName;
    }

    public void setAlbumName(String albumName) {
        this.albumName = albumName == null ? null : albumName.trim();
    }

    public Integer getCoverId() {
        return coverId;
    }

    public void setCoverId(Integer coverId) {
        this.coverId = coverId;
    }

    public Integer getVisible() {
        return visible;
    }

    public void setVisible(Integer visible) {
        this.visible = visible;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Integer getAlbumOrder() {
        return albumOrder;
    }

    public void setAlbumOrder(Integer albumOrder) {
        this.albumOrder = albumOrder;
    }

	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}
    
}